setTextFuture

open fun setTextFuture(@Nullable future: @Nullable Future<PrecomputedTextCompat>)(source)

Set the precomputed text future. This method sets future of the precomputed text instead of immediately applying text to the TextView. Anything layout related property changes, text size, typeface, letter spacing, etc after this method call will causes IllegalArgumentException during View measurement. See getTextFuture for more detail.

Parameters

future

a future for the precomputed text

See also